package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.PcSlipTemp;
import com.alks.entity.data.entity.PcSurplusTemp;
import com.alks.function.data.dto.stockdept.pcfactorystockwork.SurplusTempDto;
import com.alks.function.data.request.stockdept.pcfactorystockwork.OMtlWatiUpRequest;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-11-22
 */
public interface SD_SQ_PcSurplusTempMapper extends BaseMapper<PcSurplusTemp> {

    /*获取待入库数据*/
    List<SurplusTempDto> getSurpTempQuery(@Param("userName") String userName);

    /*待入库数据修改*/
    void surpTempUpdate(@Param("request") List<OMtlWatiUpRequest> request, @Param("userName") String userName);

    /*写入剩料入库*/
    void mTSTempAdd(@Param("slipTemps") List<PcSlipTemp> slipTemps, @Param("userName") String userName);

    /*更新库存数据*/
    void mTSTempUp(@Param("mtlNo") String mtlNo, @Param("qty") BigDecimal qty, @Param("remark") String remark, @Param("userName") String userName);

    /*剩料待出库新增*/
    void mOSTempAdd(@Param("slipTemps") List<PcSlipTemp> slipTemps, @Param("userName") String loginName);
}
